package com.yuan.fullstackback.pojo;


import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class SysArticle {
    /**
     * 主键ID
     */
    private Integer articleId;
    /**
     * 文章标题
     */
    @Size(min = 1, max = 30)
    private String title;
    /**
     * 文章内容
     */
    @Size(min = 1, max = 5000)
    private String content;
    /**
     * 封面图像
     */
    private String coverImg;
    /**
     * 发布状态 已发布|草稿
     */
    private String state;
    /**
     * 文章分类id
     */
    private Integer categoryId;
    /**
     * 创建人ID
     */
    private Integer createUser;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
}
